//
//  STProductTabView.m
//  CuiBoStore
//
//  Created by 崔博 on 16/12/12.
//  Copyright © 2016年 崔博. All rights reserved.
//

#import "STProductTabView.h"

@interface STProductTabView()

@end
@implementation STProductTabView

+ (instancetype)productTabbarView
{
    return [[[NSBundle mainBundle] loadNibNamed:@"STProductTabView" owner:nil options:nil] firstObject];
}
- (void)awakeFromNib
{
    [super awakeFromNib];
    self.backgroundColor = [UIColor whiteColor];
}

// 加入购物车
- (IBAction)addBuyCar:(UIButton *)sender {
    
    if (self.block) {
        self.block();
    };
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.width = SCREEN_WIDTH;
    self.y = SCREENH_HEIGHT - 64 - 45;
    self.height = 45;
}
@end
